#pragma once
#ifndef _CSURFACE_H
#define _CSURFACE_H

#include <d3d9.h>
#include <d3dx9.h>

class Surface
{
private:
	LPDIRECT3DDEVICE9					_pd3dDevice;
	LPDIRECT3DSURFACE9					_image;
	D3DXIMAGE_INFO						_info;
	int									_width;			// width of image
	int									_height;		// height of image
public:
	Surface(LPDIRECT3DDEVICE9 pd3dDevice);
	~Surface();

	// Load texture from file
	bool LoadSurface(LPCSTR filename, D3DCOLOR transcolor);

	LPDIRECT3DSURFACE9 GetImage() { return _image; }
	int GetWidth() { return _width; }
	int GetHeight() { return _height; }
};
#endif

